package com.mby.entity;

/**
 * Created by noah on 2018/4/17.
 */
public class YyUser {

    private Integer workTypeId;
    private Integer gender;
    private String dealerCode;
    private String empName;
    private Integer workTypeCode;
    private Integer userType;
    private String employeeNo;
    private String phone;
    private Integer userId;
    private Boolean isfalse;
    private String empRoleId;
    private String emp_Role;
    private String IS_ONJOB;

    private String DEALER_CODE;
    private String EMP_ROLE;
    private String EMP_ROLE_ID;
    private String EMPLOYEE_ID;
    private String EMPLOYEE_NAME;
    private String EMPLOYEE_NO;
    private String PHONE;
    private String USER_CODE;

    public String getDEALER_CODE() {
        return DEALER_CODE;
    }

    public void setDEALER_CODE(String DEALER_CODE) {
        this.DEALER_CODE = DEALER_CODE;
    }

    public String getEMP_ROLE() {
        return EMP_ROLE;
    }

    public void setEMP_ROLE(String EMP_ROLE) {
        this.EMP_ROLE = EMP_ROLE;
    }

    public String getEMP_ROLE_ID() {
        return EMP_ROLE_ID;
    }

    public void setEMP_ROLE_ID(String EMP_ROLE_ID) {
        this.EMP_ROLE_ID = EMP_ROLE_ID;
    }

    public String getEMPLOYEE_ID() {
        return EMPLOYEE_ID;
    }

    public void setEMPLOYEE_ID(String EMPLOYEE_ID) {
        this.EMPLOYEE_ID = EMPLOYEE_ID;
    }

    public String getEMPLOYEE_NAME() {
        return EMPLOYEE_NAME;
    }

    public void setEMPLOYEE_NAME(String EMPLOYEE_NAME) {
        this.EMPLOYEE_NAME = EMPLOYEE_NAME;
    }

    public String getEMPLOYEE_NO() {
        return EMPLOYEE_NO;
    }

    public void setEMPLOYEE_NO(String EMPLOYEE_NO) {
        this.EMPLOYEE_NO = EMPLOYEE_NO;
    }

    public String getPHONE() {
        return PHONE;
    }

    public void setPHONE(String PHONE) {
        this.PHONE = PHONE;
    }

    public String getUSER_CODE() {
        return USER_CODE;
    }

    public void setUSER_CODE(String USER_CODE) {
        this.USER_CODE = USER_CODE;
    }

    public String getEmp_Role() {
        return emp_Role;
    }

    public void setEmp_Role(String emp_Role) {
        this.emp_Role = emp_Role;
    }

    public String getIS_ONJOB() {
        return IS_ONJOB;
    }

    public void setIS_ONJOB(String IS_ONJOB) {
        this.IS_ONJOB = IS_ONJOB;
    }

    public Integer getWorkTypeId() {
        return workTypeId;
    }

    public void setWorkTypeId(Integer workTypeId) {
        this.workTypeId = workTypeId;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getDealerCode() {
        return dealerCode;
    }

    public void setDealerCode(String dealerCode) {
        this.dealerCode = dealerCode;
    }

    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    public Integer getWorkTypeCode() {
        return workTypeCode;
    }

    public void setWorkTypeCode(Integer workTypeCode) {
        this.workTypeCode = workTypeCode;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public String getEmployeeNo() {
        return employeeNo;
    }

    public void setEmployeeNo(String employeeNo) {
        this.employeeNo = employeeNo;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Boolean getIsfalse() {
        return isfalse;
    }

    public void setIsfalse(Boolean isfalse) {
        this.isfalse = isfalse;
    }

    public String getEmpRoleId() {
        return empRoleId;
    }

    public void setEmpRoleId(String empRoleId) {
        this.empRoleId = empRoleId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public User toUser(){
        User user = new User();
        user.setDealerId(dealerCode);
        user.setRoleIds(empRoleId);
        user.setRoleName(emp_Role);
        user.setPhone(phone);
        user.setId(userId);
        if("10081001".equals(IS_ONJOB)){
            user.setQuited(false);
        }else{
            user.setQuited(true);
        }
        user.setUserName(empName);
        return user;
    }
}
